package ren.kane.asdppp.transaction.employee;

import ren.kane.asdppp.classification.PaymentClassification;
import ren.kane.asdppp.classification.SalariedClassification;
import ren.kane.asdppp.schedule.MonthlySchedule;
import ren.kane.asdppp.schedule.PaymentSchedule;

/**
 * @author renrk(1275) on 2019-04-09 7:03 PM
 **/
public class AddSalariedEmployee extends AddEmployeeTransaction {

    private double salary;

    public AddSalariedEmployee() {
    }

    public AddSalariedEmployee(int empId, String name, String address, double salary) {
        super(empId, name, address);
        this.salary = salary;
    }

    @Override
    protected PaymentClassification getClassification() {
        return new SalariedClassification(salary);
    }

    @Override
    protected PaymentSchedule getSchedule() {
        return new MonthlySchedule();
    }
}
